
def output():

    nums = []
    count = 0
    sum = 0
    for i in range(1,5):
        for j in range(1,5):
            for k in range(1,5):
                if i == j or i == k or j == k:
                    print(i * 100 + j * 10 + k)
                    continue
                num = str(i)+str(j)+str(k)
                nums.append(num)
                count = count + 1
                sum = sum + int(num)

    return nums,sum,count

if __name__ == '__main__':
    nums,sum,count = output()
    #print(len(nums))
    print('总和:%s'% sum)
    print('个数:%s' % count)
    print('平均:%s' % (sum/len(nums)))

    #print(sum)
    #print("总共能组成{}个数字".format(len(numSs)))
    #print("平均值为",average)